﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Ruminate.GUI.Content;
using Ruminate.GUI.Framework;

namespace TestBed {

    public class NewTheme : Theme {

        public NewTheme(ContentManager gameContent, RuminateGUI gui) : base(gui) {

            ThemeDictionary.Add("Panel", 
                new BorderRenderer(
                    gameContent.Load<Texture2D>(".\\pan"), 
                    6,          //Border Width
                    8,          //Stencil Background
                    32,         //Background
                    gui));

            ThemeDictionary.Add("CheckBox", 
                new IconRenderer(gameContent.Load<Texture2D>(".\\checkboxes"),
                    new Point(16, 16),
                    4,  
                    gui));

            ThemeDictionary.Add("Radio", 
                new IconRenderer(
                    gameContent.Load<Texture2D>(".\\radios"), 
                    new Point(16, 16), 
                    4, 
                    gui));            

            ThemeDictionary.Add("Button", 
                new SlidingDoorRenderer(
                    gameContent.Load<Texture2D>(".\\button"), 
                    19, 
                    1,
                    3,
                    8,
                    3, 
                    gui));

            ThemeDictionary.Add("ScrollBar", 
                new SlidingDoorRenderer(
                    gameContent.Load<Texture2D>(".\\bar"),
                    16,     //Height
                    1,      //Center Width
                    2,      //End Width
                    2,      //Background
                    1,      //Depth
                    gui));

            ThemeDictionary.Add("ScrollBarHolder",
                new SlidingDoorRenderer(
                    gameContent.Load<Texture2D>(".\\holder"),
                    16,     //Height
                    1,      //Center Width
                    16,     //End Width
                    2,      //Background
                    2,      //Depth
                    gui));            

            ThemeDictionary.Add("TextRenderer", 
                new TextRenderer(
                    gameContent.Load<SpriteFont>(".\\SpriteFont1"),
                    gameContent.Load<Texture2D>(".\\cursor"), 
                    Color.Black, 
                    gui));            
        }
    }
}
